<!-- docs/download.html  -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Alpha‑Factory Pro – Downloads</title>
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <style>
        body{font-family:system-ui,Arial,sans-serif;margin:0;background:#f7f7f9;color:#333}
        header{padding:2rem 1rem;text-align:center;background:#20232a;color:#fff}
        h1{margin:0;font-size:2rem}
        main{max-width:680px;margin:2rem auto;padding:0 1rem}
        .card{background:#fff;border-radius:8px;padding:1.5rem;margin-bottom:1.5rem;box-shadow:0 2px 4px rgba(0,0,0,.08)}
        code{background:#eee;padding:.1rem .3rem;border-radius:4px}
        a.button{display:inline-block;margin-top:.8rem;background:#007bff;color:#fff;padding:.6rem 1.2rem;border-radius:6px;text-decoration:none}
        a.button:hover{background:#0069d9}
        footer{font-size:.85rem;text-align:center;padding:1.5rem 0;color:#666}
    </style>
</head>
<body>
<header>
    <h1>Alpha‑Factory Pro – Downloads</h1>
    <p>Build &amp; run your own instance in minutes.</p>
</header>

<main>
    <section class="card">
        <h2>1. Clone the repo</h2>
        <pre><code>git clone https://github.com/your‑org/alpha‑factory.git
cd alpha‑factory</code></pre>
    </section>

    <section class="card">
        <h2>2. Build the Docker image</h2>
        <p>Interactive:</p>
        <pre><code>./install_alpha_factory_pro.sh</code></pre>

        <p>Headless server, no UI:</p>
        <pre><code>./install_alpha_factory_pro.sh --no-ui --trace --no-cache</code></pre>

        <a class="button" href="../install_alpha_factory_pro.sh" download>Download installer</a>
    </section>

    <section class="card">
        <h2>3. Run</h2>
        <pre><code>docker run --rm -p 33000:3000 alphafactory_pro:latest</code></pre>
        <p>Open <code>http://localhost:33000/api/logs</code> to verify.</p>
    </section>
</main>

<footer>
    Need help? <a href="https://github.com/your‑org/alpha‑factory/issues">Open an issue</a>.
</footer>
</body>
</html>

